#include<bits/stdc++.h>
using namespace std;
int a[100005],s;
int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	int n,l=1,r=2;
	scanf("%d",&n);
	for(int i=1;i<=n;i++){
		scanf("%d",&a[i]);
	}
	sort(a+1,a+1+n);
	while(r<=n){
		if(a[r]>a[l]){
			s++;
			l++;
			r++;
		}else{
			r++;
		}
	}
	printf("%d",n-s);
	return 0;	
}
